package com.tuanzi.loan.web.bean.galaxycard;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardOrderStatService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardOrderStatRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardOrderStatResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.galaxycard.GalaxyCardOrderStatLazyDataModel;

/**
 * 银河黑卡订单统计列表Bean
 * @author chenweijun 2018/01/30
 *
 */
@Data
@Debug
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class GalaxyCardOrderStatListBean extends JSFListingBean<GalaxyCardOrderStatRequest, GalaxyCardOrderStatResponse> {
	
	private static final long serialVersionUID = -8702163528354238525L;
	
	@Autowired
	private GalaxyCardOrderStatService galaxyCardOrderStatService;
	
	@PostConstruct
	private void init() {
		initLazyDataModel();
	}
	
	private void initLazyDataModel() {
		$ = new GalaxyCardOrderStatRequest();
		lazyDataModel = new GalaxyCardOrderStatLazyDataModel($);
	}

}
